package cn.tlb.gl;

import android.app.LauncherActivity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.ArrayAdapter;

import cn.tlb.gl.cubeopengl.CubeDemoActivity;
import cn.tlb.gl.demo1.GLDemoActivity;
import cn.tlb.gl.demo2.GL_01_Activity;
import cn.tlb.gl.demo3d.GL_3D_Activity;
import cn.tlb.gl.democube.GL_Cube_Activity;
import cn.tlb.gl.face20_3d.Face20_3D_Activity;
import cn.tlb.gl.face20_3d_2.Face20_3D_II_Activity;
import cn.tlb.gl.face20_3d_light.Face20_3D_Light_Activity;
import cn.tlb.gl.game.head.CubeHeadActivity;
import cn.tlb.gl.game.model.GameModelActivity;
import cn.tlb.gl.game.rebuild3.GameModelActivity3;
import cn.tlb.gl.texture_2d.Texture2DActivity;
import cn.tlb.gl.texture_3d.Texture3DActivity;
import cn.tlb.gl.tri_texture.TriangleTextureActivity;

public class GLContents extends LauncherActivity {
    String[] titles = {
            "demo0",
            "demo1_2D",
            "三棱锥",
            "正方体",
            "2D纹理",
            "3D纹理",
            "三角形纹理",
            "三棱锥纹理",
            "二十面体",
            "透视 -- 二十面体",
            "光效 -- 二十面体",
            "游戏人物",
            "游戏人物 II",
            "游戏人物 重构(固定纹理)",
            "游戏人物 重构(固定皮肤)",
            "单层皮肤",
            "立方体贴图例子-net"
    };
    Class[] cls = {
            GLDemoActivity.class,
            GL_01_Activity.class,
            GL_3D_Activity.class,
            GL_Cube_Activity.class,
            Texture2DActivity.class,
            Texture3DActivity.class,
            TriangleTextureActivity.class,
            cn.tlb.gl.tri3dtexture.TriangleTextureActivity.class,
            Face20_3D_Activity.class,
            Face20_3D_II_Activity.class,
            Face20_3D_Light_Activity.class,
            CubeHeadActivity.class,
            GameModelActivity.class,
            cn.tlb.gl.game.rebuild.GameModelActivity.class,
            cn.tlb.gl.game.rebuild2.GameModelActivity.class,
            GameModelActivity3.class,
            CubeDemoActivity.class
    };
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setListAdapter(new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, titles));
    }

    @Override
    protected Intent intentForPosition(int position) {
        return new Intent(this, cls[position]);
    }
}
